package com.siwen.exception;

import com.siwen.common.ErrorCode;
import com.siwen.common.ErrorCode;

public class UserException extends RuntimeException {

    private int code ;

    public int getCode() {
        return code;
    }

    public UserException(ErrorCode error ) {
        super(error.getMessage());
        this.code = error.getCode();
    }
}
